<html>
<head>
<script>var isomorphicDir="../isomorphic/";</script>
<script src="../isomorphic/system/development/ISC_Core.js"></script>
<script src="../isomorphic/system/development/ISC_Foundation.js"></script>
<script src="../isomorphic/system/development/ISC_Containers.js"></script>
<script src="../isomorphic/system/development/ISC_Grids.js"></script>
<script src="../isomorphic/system/development/ISC_Forms.js"></script>
<script src="../isomorphic/system/development/ISC_DataBinding.js"></script>
<script src="../isomorphic/skins/Enterprise/load_skin.js"></script>

<script src="../isomorphic/login/reloginFlow.js"></script>
<!-- <script src=../js/js/DataSource.js></SCRIPT>  -->
<script src="../../../org.openbravo.client.kernel/OBSERDS_Datasource/ADTab"></script>
</head>
<body>
<script>

Page.setAppImgDir('../../skins/ltr/Default/');

isc.DynamicForm.selectOnFocus = true;

isc.TabSet.create({
    ID: "tabSet_1",
    tabBarPosition: "top",
    top: 40,
    left: 20,
    width: 1100, 
    height: 500,
    tabs: []
});

function doAddTab(tabRecord, destinyTabSetId) {
  if (typeof destinyTabSetId == "undefined") {
    destinyTabSetId = 'tabSet_1';
  }
  var tab = tabRecord.id;
  var tabId = "tab_" + tab;
  var tabTitle = tabRecord._identifier;
  var viewLoaderId = "ViewLoader_" + tab;
  var viewLoaderUrl = '../../../org.openbravo.userinterface.smartclient.obscripting/masterdetailview/' + tab;

  if (TabSet.getById(destinyTabSetId).getTab(tabId) != null) {
      TabSet.getById(destinyTabSetId).selectTab(tabId);
      return;
  }

//  var grid = isc.ListGrid.create({showResizeBar: true, autoDraw: false, ID : 'ADWindowAccessGrid',left : 20, top : 20, height : 300, minFieldWidth: 100, wrapCells : true,showFilterEditor: true, dataPageSize : 50, canFreezeFields: true, canAddFormulaFields: true, canAddSummaryFields: true, alternateRecordStyles : true, recordClick: 'ADWindowAccessDetailView.setData(record)',fields : [{title: 'window', name: 'window._identifier', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'role', name: 'role._identifier', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'active', name: 'active', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'editableField', name: 'editableField', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true}]});
//  doSetDataSource('ADWindowAccess', 'ADWindowAccessGrid');

var opBindings = [{operationType:"fetch", dataProtocol:"getParams"},
                  {operationType:"add", dataProtocol:"postMessage"},
                  {operationType:"remove", dataProtocol:"getParams", requestProperties:{httpMethod:"DELETE"}},
                  {operationType:"update", dataProtocol:"postMessage", requestProperties:{httpMethod:"PUT"}}
];


if (isc.DataSource.get('ADColumn') == null) {isc.DataSource.registerDataSource(isc.RestDataSource.create({operationBindings: opBindings, ID:'ADColumn',dataURL:"../../../org.openbravo.userinterface.smartclient.jsondata/ADColumn",recordXPath : "/response/data", dataFormat: "json",fields:[ {name: "id", type: "text", hidden: true, primaryKey: true, required: true, canSave: false, title: "id"}, {name: "client", type: "text", required: true, canSave: false, length: 22, title: "client", hidden: true, foreignKey: "ADClient.id"}, {name: "client.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/id", title: "client"}, {name: "client._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/_identifier", title: "client"}, {name: "organization", type: "text", required: true, length: 22, title: "organization", hidden: true, foreignKey: "Organization.id"}, {name: "organization.id", type: "text", hidden: true, required: true, valueXPath: "organization/id", title: "organization"}, {name: "organization._identifier", type: "text", hidden: true, required: true, valueXPath: "organization/_identifier", title: "organization"}, {name: "active", type: "boolean", required: true, length: 1, title: "active"}, {name: "creationDate", type: "date", required: true, canSave: false, length: 19, title: "creationDate"}, {name: "updated", type: "date", required: true, canSave: false, length: 19, title: "updated"}, {name: "createdBy", type: "text", required: true, canSave: false, length: 22, title: "createdBy", hidden: true, foreignKey: "ADUser.id"}, {name: "createdBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/id", title: "createdBy"}, {name: "createdBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/_identifier", title: "createdBy"}, {name: "updatedBy", type: "text", required: true, canSave: false, length: 22, title: "updatedBy", hidden: true, foreignKey: "ADUser.id"}, {name: "updatedBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/id", title: "updatedBy"}, {name: "updatedBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/_identifier", title: "updatedBy"}, {name: "name", type: "text", required: true, length: 60, title: "name"}, {name: "description", type: "text", length: 255, title: "description"}, {name: "helpComment", type: "text", length: 2000, title: "helpComment"}, {name: "dBColumnName", type: "text", required: true, length: 40, title: "dBColumnName"}, {name: "table", type: "text", required: true, canSave: false, length: 22, title: "table", hidden: true, foreignKey: "ADTable.id"}, {name: "table.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "table/id", title: "table"}, {name: "table._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "table/_identifier", title: "table"}, {name: "reference", type: "text", required: true, length: 22, title: "reference", hidden: true, foreignKey: "ADReference.id"}, {name: "reference.id", type: "text", hidden: true, required: true, valueXPath: "reference/id", title: "reference"}, {name: "reference._identifier", type: "text", hidden: true, required: true, valueXPath: "reference/_identifier", title: "reference"}, {name: "referenceSearchKey", type: "text", length: 22, title: "referenceSearchKey", hidden: true, foreignKey: "ADReference.id"}, {name: "referenceSearchKey.id", type: "text", hidden: true, valueXPath: "referenceSearchKey/id", title: "referenceSearchKey"}, {name: "referenceSearchKey._identifier", type: "text", hidden: true, valueXPath: "referenceSearchKey/_identifier", title: "referenceSearchKey"}, {name: "validation", type: "text", length: 22, title: "validation", hidden: true, foreignKey: "ADValidation.id"}, {name: "validation.id", type: "text", hidden: true, valueXPath: "validation/id", title: "validation"}, {name: "validation._identifier", type: "text", hidden: true, valueXPath: "validation/_identifier", title: "validation"}, {name: "length", type: "integer", required: true, length: 10, title: "length"}, {name: "defaultValue", type: "text", length: 2000, title: "defaultValue"}, {name: "keyColumn", type: "boolean", required: true, length: 1, title: "keyColumn"}, {name: "linkToParentColumn", type: "boolean", required: true, length: 1, title: "linkToParentColumn"}, {name: "mandatory", type: "boolean", required: true, length: 1, title: "mandatory"}, {name: "updatable", type: "boolean", required: true, length: 1, title: "updatable"}, {name: "readOnlyLogic", type: "text", length: 2000, title: "readOnlyLogic"}, {name: "_identifier", type: "boolean", required: true, length: 1, title: "_identifier"}, {name: "sequenceNumber", type: "integer", length: 10, title: "sequenceNumber"}, {name: "translation", type: "boolean", required: true, length: 1, title: "translation"}, {name: "displayEncription", type: "boolean", required: true, length: 1, title: "displayEncription"}, {name: "calloutFunction", type: "text", length: 60, title: "calloutFunction"}, {name: "valueFormat", type: "text", length: 60, title: "valueFormat"}, {name: "minValue", type: "text", length: 20, title: "minValue"}, {name: "maxValue", type: "text", length: 20, title: "maxValue"}, {name: "filterColumn", type: "boolean", required: true, length: 1, title: "filterColumn"}, {name: "applicationElement", type: "text", length: 22, title: "applicationElement", hidden: true, foreignKey: "ADElement.id"}, {name: "applicationElement.id", type: "text", hidden: true, valueXPath: "applicationElement/id", title: "applicationElement"}, {name: "applicationElement._identifier", type: "text", hidden: true, valueXPath: "applicationElement/_identifier", title: "applicationElement"}, {name: "process", type: "text", length: 22, title: "process", hidden: true, foreignKey: "ADProcess.id"}, {name: "process.id", type: "text", hidden: true, valueXPath: "process/id", title: "process"}, {name: "process._identifier", type: "text", hidden: true, valueXPath: "process/_identifier", title: "process"}, {name: "storedInSession", type: "boolean", length: 1, title: "storedInSession"}, {name: "secondaryKey", type: "boolean", length: 1, title: "secondaryKey"}, {name: "deencryptable", type: "boolean", length: 1, title: "deencryptable"}, {name: "callout", type: "text", length: 12, title: "callout", hidden: true, foreignKey: "ADCallout.id"}, {name: "callout.id", type: "text", hidden: true, valueXPath: "callout/id", title: "callout"}, {name: "callout._identifier", type: "text", hidden: true, valueXPath: "callout/_identifier", title: "callout"}, {name: "developmentStatus", type: "text", length: 60, title: "developmentStatus", valueMap: ["NI", "RE", "DP", "CC"]}, {name: "module", type: "text", required: true, length: 32, title: "module", hidden: true, foreignKey: "ADModule.id"}, {name: "module.id", type: "text", hidden: true, required: true, valueXPath: "module/id", title: "module"}, {name: "module._identifier", type: "text", hidden: true, required: true, valueXPath: "module/_identifier", title: "module"}, {name: "position", type: "integer", length: 3, title: "position"}, {name: "transient", type: "boolean", length: 1, title: "transient"}, {name: "transientCondition", type: "text", length: 2000, title: "transientCondition"}]}));}
if (isc.DataSource.get('ADClient') == null) {isc.DataSource.registerDataSource(isc.RestDataSource.create({operationBindings: opBindings, ID:'ADClient',dataURL:"../../../org.openbravo.userinterface.smartclient.jsondata/ADClient",recordXPath : "/response/data", dataFormat: "json",fields:[ {name: "id", type: "text", hidden: true, primaryKey: true, required: true, canSave: false, title: "id"}, {name: "organization", type: "text", required: true, length: 22, title: "organization", hidden: true, foreignKey: "Organization.id"}, {name: "organization.id", type: "text", hidden: true, required: true, valueXPath: "organization/id", title: "organization"}, {name: "organization._identifier", type: "text", hidden: true, required: true, valueXPath: "organization/_identifier", title: "organization"}, {name: "active", type: "boolean", required: true, length: 1, title: "active"}, {name: "creationDate", type: "date", required: true, canSave: false, length: 19, title: "creationDate"}, {name: "createdBy", type: "text", required: true, canSave: false, length: 22, title: "createdBy", hidden: true, foreignKey: "ADUser.id"}, {name: "createdBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/id", title: "createdBy"}, {name: "createdBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/_identifier", title: "createdBy"}, {name: "updated", type: "date", required: true, canSave: false, length: 19, title: "updated"}, {name: "updatedBy", type: "text", required: true, canSave: false, length: 22, title: "updatedBy", hidden: true, foreignKey: "ADUser.id"}, {name: "updatedBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/id", title: "updatedBy"}, {name: "updatedBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/_identifier", title: "updatedBy"}, {name: "searchKey", type: "text", required: true, length: 40, title: "searchKey"}, {name: "name", type: "text", required: true, length: 60, title: "name"}, {name: "description", type: "text", length: 255, title: "description"}, {name: "mailHost", type: "text", length: 60, title: "mailHost"}, {name: "requestEmail", type: "text", length: 40, title: "requestEmail"}, {name: "requestUser", type: "text", length: 20, title: "requestUser"}, {name: "requestUserPassword", type: "text", length: 20, title: "requestUserPassword"}, {name: "requestFolder", type: "text", length: 20, title: "requestFolder"}, {name: "language", type: "text", length: 6, title: "language", hidden: true, foreignKey: "ADLanguage.id"}, {name: "language.id", type: "text", hidden: true, valueXPath: "language/id", title: "language"}, {name: "language._identifier", type: "text", hidden: true, valueXPath: "language/_identifier", title: "language"}, {name: "multilingualDocuments", type: "boolean", required: true, length: 1, title: "multilingualDocuments"}, {name: "sMTPAuthentification", type: "boolean", required: true, length: 1, title: "sMTPAuthentification"}, {name: "currency", type: "text", length: 32, title: "currency", hidden: true, foreignKey: "Currency.id"}, {name: "currency.id", type: "text", hidden: true, valueXPath: "currency/id", title: "currency"}, {name: "currency._identifier", type: "text", hidden: true, valueXPath: "currency/_identifier", title: "currency"}]}));}
if (isc.DataSource.get('Organization') == null) {isc.DataSource.registerDataSource(isc.RestDataSource.create({operationBindings: opBindings, ID:'Organization',dataURL:"../../../org.openbravo.userinterface.smartclient.jsondata/Organization",recordXPath : "/response/data", dataFormat: "json",fields:[ {name: "id", type: "text", hidden: true, primaryKey: true, required: true, title: "id"}, {name: "client", type: "text", required: true, canSave: false, length: 22, title: "client", hidden: true, foreignKey: "ADClient.id"}, {name: "client.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/id", title: "client"}, {name: "client._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/_identifier", title: "client"}, {name: "active", type: "boolean", required: true, length: 1, title: "active"}, {name: "creationDate", type: "date", required: true, canSave: false, length: 19, title: "creationDate"}, {name: "createdBy", type: "text", required: true, canSave: false, length: 22, title: "createdBy", hidden: true, foreignKey: "ADUser.id"}, {name: "createdBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/id", title: "createdBy"}, {name: "createdBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/_identifier", title: "createdBy"}, {name: "updated", type: "date", required: true, canSave: false, length: 19, title: "updated"}, {name: "updatedBy", type: "text", required: true, canSave: false, length: 22, title: "updatedBy", hidden: true, foreignKey: "ADUser.id"}, {name: "updatedBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/id", title: "updatedBy"}, {name: "updatedBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/_identifier", title: "updatedBy"}, {name: "searchKey", type: "text", required: true, length: 40, title: "searchKey"}, {name: "name", type: "text", required: true, length: 60, title: "name"}, {name: "description", type: "text", length: 255, title: "description"}, {name: "summaryLevel", type: "boolean", required: true, length: 1, title: "summaryLevel"}, {name: "organizationType", type: "text", required: true, length: 32, title: "organizationType", hidden: true, foreignKey: "OrganizationType.id"}, {name: "organizationType.id", type: "text", hidden: true, required: true, valueXPath: "organizationType/id", title: "organizationType"}, {name: "organizationType._identifier", type: "text", hidden: true, required: true, valueXPath: "organizationType/_identifier", title: "organizationType"}, {name: "allowPeriodControl", type: "boolean", required: true, length: 1, title: "allowPeriodControl"}, {name: "calendar", type: "text", length: 32, title: "calendar", hidden: true, foreignKey: "FinancialMgmtCalendar.id"}, {name: "calendar.id", type: "text", hidden: true, valueXPath: "calendar/id", title: "calendar"}, {name: "calendar._identifier", type: "text", hidden: true, valueXPath: "calendar/_identifier", title: "calendar"}, {name: "ready", type: "boolean", required: true, length: 1, title: "ready"}]}));}
if (isc.DataSource.get('ADTable') == null) {isc.DataSource.registerDataSource(isc.RestDataSource.create({operationBindings: opBindings, ID:'ADTable',dataURL:"../../../org.openbravo.userinterface.smartclient.jsondata/ADTable",recordXPath : "/response/data", dataFormat: "json",fields:[ {name: "id", type: "text", hidden: true, primaryKey: true, required: true, canSave: false, title: "id"}, {name: "client", type: "text", required: true, canSave: false, length: 22, title: "client", hidden: true, foreignKey: "ADClient.id"}, {name: "client.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/id", title: "client"}, {name: "client._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/_identifier", title: "client"}, {name: "organization", type: "text", required: true, length: 22, title: "organization", hidden: true, foreignKey: "Organization.id"}, {name: "organization.id", type: "text", hidden: true, required: true, valueXPath: "organization/id", title: "organization"}, {name: "organization._identifier", type: "text", hidden: true, required: true, valueXPath: "organization/_identifier", title: "organization"}, {name: "active", type: "boolean", required: true, length: 1, title: "active"}, {name: "creationDate", type: "date", required: true, canSave: false, length: 19, title: "creationDate"}, {name: "createdBy", type: "text", required: true, canSave: false, length: 22, title: "createdBy", hidden: true, foreignKey: "ADUser.id"}, {name: "createdBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/id", title: "createdBy"}, {name: "createdBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/_identifier", title: "createdBy"}, {name: "updated", type: "date", required: true, canSave: false, length: 19, title: "updated"}, {name: "updatedBy", type: "text", required: true, canSave: false, length: 22, title: "updatedBy", hidden: true, foreignKey: "ADUser.id"}, {name: "updatedBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/id", title: "updatedBy"}, {name: "updatedBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/_identifier", title: "updatedBy"}, {name: "name", type: "text", required: true, length: 60, title: "name"}, {name: "description", type: "text", length: 255, title: "description"}, {name: "helpComment", type: "text", length: 2000, title: "helpComment"}, {name: "dBTableName", type: "text", required: true, length: 40, title: "dBTableName"}, {name: "javaClassName", type: "text", required: true, length: 60, title: "javaClassName"}, {name: "view", type: "boolean", required: true, length: 1, title: "view"}, {name: "dataAccessLevel", type: "text", required: true, length: 60, title: "dataAccessLevel", valueMap: ["3", "1", "7", "6", "4"]}, {name: "window", type: "text", length: 22, title: "window", hidden: true, foreignKey: "ADWindow.id"}, {name: "window.id", type: "text", hidden: true, valueXPath: "window/id", title: "window"}, {name: "window._identifier", type: "text", hidden: true, valueXPath: "window/_identifier", title: "window"}, {name: "securityEnabled", type: "boolean", length: 1, title: "securityEnabled"}, {name: "deletableRecords", type: "boolean", required: true, length: 1, title: "deletableRecords"}, {name: "highVolume", type: "boolean", required: true, length: 1, title: "highVolume"}, {name: "importTable", type: "boolean", length: 1, title: "importTable"}, {name: "maintainChangeLog", type: "boolean", length: 1, title: "maintainChangeLog"}, {name: "pOWindow", type: "text", length: 22, title: "pOWindow", hidden: true, foreignKey: "ADWindow.id"}, {name: "pOWindow.id", type: "text", hidden: true, valueXPath: "pOWindow/id", title: "pOWindow"}, {name: "pOWindow._identifier", type: "text", hidden: true, valueXPath: "pOWindow/_identifier", title: "pOWindow"}, {name: "defaultAccount", type: "boolean", length: 1, title: "defaultAccount"}, {name: "sQLRecord_identifier", type: "text", length: 4000, title: "sQLRecord_identifier"}, {name: "developmentStatus", type: "text", length: 60, title: "developmentStatus", valueMap: ["NI", "RE", "DP", "CC"]}, {name: "dataPackage", type: "text", required: true, length: 32, title: "dataPackage", hidden: true, foreignKey: "DataPackage.id"}, {name: "dataPackage.id", type: "text", hidden: true, required: true, valueXPath: "dataPackage/id", title: "dataPackage"}, {name: "dataPackage._identifier", type: "text", hidden: true, required: true, valueXPath: "dataPackage/_identifier", title: "dataPackage"}, {name: "treeType", type: "text", length: 60, title: "treeType", valueMap: ["II", "AR", "MM", "EV", "AY", "TR", "OO", "SR", "BB", "PR", "PJ", "BP", "MC", "PC"]}, {name: "acctdateColumn", type: "text", length: 32, title: "acctdateColumn", hidden: true, foreignKey: "ADColumn.id"}, {name: "acctdateColumn.id", type: "text", hidden: true, valueXPath: "acctdateColumn/id", title: "acctdateColumn"}, {name: "acctdateColumn._identifier", type: "text", hidden: true, valueXPath: "acctdateColumn/_identifier", title: "acctdateColumn"}, {name: "acctclassname", type: "text", length: 1000, title: "acctclassname"}]}));}
if (isc.DataSource.get('ADModule') == null) {isc.DataSource.registerDataSource(isc.RestDataSource.create({operationBindings: opBindings, ID:'ADModule',dataURL:"../../../org.openbravo.userinterface.smartclient.jsondata/ADModule",recordXPath : "/response/data", dataFormat: "json",fields:[ {name: "id", type: "text", hidden: true, primaryKey: true, required: true, canSave: false, title: "id"}, {name: "client", type: "text", required: true, canSave: false, length: 32, title: "client", hidden: true, foreignKey: "ADClient.id"}, {name: "client.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/id", title: "client"}, {name: "client._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/_identifier", title: "client"}, {name: "organization", type: "text", required: true, canSave: false, length: 32, title: "organization", hidden: true, foreignKey: "Organization.id"}, {name: "organization.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "organization/id", title: "organization"}, {name: "organization._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "organization/_identifier", title: "organization"}, {name: "active", type: "boolean", required: true, length: 1, title: "active"}, {name: "creationDate", type: "date", required: true, canSave: false, length: 19, title: "creationDate"}, {name: "createdBy", type: "text", required: true, canSave: false, length: 32, title: "createdBy", hidden: true, foreignKey: "ADUser.id"}, {name: "createdBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/id", title: "createdBy"}, {name: "createdBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/_identifier", title: "createdBy"}, {name: "updated", type: "date", required: true, canSave: false, length: 19, title: "updated"}, {name: "updatedBy", type: "text", required: true, canSave: false, length: 32, title: "updatedBy", hidden: true, foreignKey: "ADUser.id"}, {name: "updatedBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/id", title: "updatedBy"}, {name: "updatedBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/_identifier", title: "updatedBy"}, {name: "name", type: "text", required: true, length: 60, title: "name"}, {name: "version", type: "text", required: true, length: 10, title: "version"}, {name: "description", type: "text", required: true, length: 255, title: "description"}, {name: "helpComment", type: "text", length: 2000, title: "helpComment"}, {name: "uRL", type: "text", length: 300, title: "uRL"}, {name: "type", type: "text", required: true, length: 60, title: "type", valueMap: ["T", "P", "M"]}, {name: "licenseText", type: "text", length: 2000, title: "licenseText"}, {name: "inDevelopment", type: "boolean", length: 1, title: "inDevelopment"}, {name: "default", type: "boolean", length: 1, title: "default"}, {name: "sequenceNumber", type: "integer", length: 12, title: "sequenceNumber"}, {name: "javaPackage", type: "text", required: true, length: 255, title: "javaPackage"}, {name: "licenseType", type: "text", length: 60, title: "licenseType", valueMap: ["Affero", "LGPL", "GPL2.0", "OBPL", "Apache2.0", "BSD", "OtherCOM", "EPL1.0", "Artistic/GPL", "OtherOS", "GPL3.0", "OBCL", "PD", "MPL1.1", "MIT", "CPAL1.0"]}, {name: "author", type: "text", length: 2000, title: "author"}, {name: "status", type: "text", canSave: false, length: 60, title: "status", valueMap: ["U", "A", "P", "I"]}, {name: "availableUpdate", type: "text", length: 10, title: "availableUpdate"}, {name: "translationRequired", type: "boolean", length: 1, title: "translationRequired"}, {name: "language", type: "text", length: 6, title: "language", hidden: true, foreignKey: "ADLanguage.id"}, {name: "language.id", type: "text", hidden: true, valueXPath: "language/id", title: "language"}, {name: "language._identifier", type: "text", hidden: true, valueXPath: "language/_identifier", title: "language"}, {name: "hasChartOfAccounts", type: "boolean", required: true, length: 1, title: "hasChartOfAccounts"}, {name: "isTranslationModule", type: "boolean", required: true, length: 1, title: "isTranslationModule"}, {name: "hasReferenceData", type: "boolean", required: true, length: 1, title: "hasReferenceData"}, {name: "registerModule", type: "boolean", length: 1, title: "registerModule"}, {name: "updateInformation", type: "text", length: 2000, title: "updateInformation"}, {name: "updateVersion", type: "text", length: 32, title: "updateVersion"}, {name: "referenceDataDescription", type: "text", length: 2000, title: "referenceDataDescription"}, {name: "versionLabel", type: "text", length: 60, title: "versionLabel"}, {name: "versionID", type: "text", length: 60, title: "versionID"}, {name: "commercial", type: "boolean", required: true, length: 1, title: "commercial"}]}));}
if (isc.DataSource.get('ADElement') == null) {isc.DataSource.registerDataSource(isc.RestDataSource.create({operationBindings: opBindings, ID:'ADElement',dataURL:"../../../org.openbravo.userinterface.smartclient.jsondata/ADElement",recordXPath : "/response/data", dataFormat: "json",fields:[ {name: "id", type: "text", hidden: true, primaryKey: true, required: true, canSave: false, title: "id"}, {name: "client", type: "text", required: true, canSave: false, length: 22, title: "client", hidden: true, foreignKey: "ADClient.id"}, {name: "client.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/id", title: "client"}, {name: "client._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/_identifier", title: "client"}, {name: "organization", type: "text", length: 22, title: "organization", hidden: true, foreignKey: "Organization.id"}, {name: "organization.id", type: "text", hidden: true, valueXPath: "organization/id", title: "organization"}, {name: "organization._identifier", type: "text", hidden: true, valueXPath: "organization/_identifier", title: "organization"}, {name: "active", type: "boolean", required: true, length: 1, title: "active"}, {name: "creationDate", type: "date", required: true, canSave: false, length: 19, title: "creationDate"}, {name: "createdBy", type: "text", canSave: false, length: 22, title: "createdBy", hidden: true, foreignKey: "ADUser.id"}, {name: "createdBy.id", type: "text", hidden: true, canSave: false, valueXPath: "createdBy/id", title: "createdBy"}, {name: "createdBy._identifier", type: "text", hidden: true, canSave: false, valueXPath: "createdBy/_identifier", title: "createdBy"}, {name: "updated", type: "date", required: true, canSave: false, length: 19, title: "updated"}, {name: "updatedBy", type: "text", canSave: false, length: 22, title: "updatedBy", hidden: true, foreignKey: "ADUser.id"}, {name: "updatedBy.id", type: "text", hidden: true, canSave: false, valueXPath: "updatedBy/id", title: "updatedBy"}, {name: "updatedBy._identifier", type: "text", hidden: true, canSave: false, valueXPath: "updatedBy/_identifier", title: "updatedBy"}, {name: "dBColumnName", type: "text", required: true, length: 40, title: "dBColumnName"}, {name: "name", type: "text", length: 60, title: "name"}, {name: "printText", type: "text", required: true, length: 60, title: "printText"}, {name: "description", type: "text", length: 255, title: "description"}, {name: "helpComment", type: "text", length: 2000, title: "helpComment"}, {name: "purchaseOrderName", type: "text", length: 60, title: "purchaseOrderName"}, {name: "printNameOnPurchaseOrder", type: "text", length: 60, title: "printNameOnPurchaseOrder"}, {name: "purchaseOrderDescription", type: "text", length: 255, title: "purchaseOrderDescription"}, {name: "purchaseOrderHelp", type: "text", length: 2000, title: "purchaseOrderHelp"}, {name: "module", type: "text", required: true, length: 32, title: "module", hidden: true, foreignKey: "ADModule.id"}, {name: "module.id", type: "text", hidden: true, required: true, valueXPath: "module/id", title: "module"}, {name: "module._identifier", type: "text", hidden: true, required: true, valueXPath: "module/_identifier", title: "module"}]}));}
if (isc.DataSource.get('ADReference') == null) {isc.DataSource.registerDataSource(isc.RestDataSource.create({operationBindings: opBindings, ID:'ADReference',dataURL:"../../../org.openbravo.userinterface.smartclient.jsondata/ADReference",recordXPath : "/response/data", dataFormat: "json",fields:[ {name: "id", type: "text", hidden: true, primaryKey: true, required: true, canSave: false, title: "id"}, {name: "client", type: "text", required: true, canSave: false, length: 22, title: "client", hidden: true, foreignKey: "ADClient.id"}, {name: "client.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/id", title: "client"}, {name: "client._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/_identifier", title: "client"}, {name: "organization", type: "text", required: true, length: 22, title: "organization", hidden: true, foreignKey: "Organization.id"}, {name: "organization.id", type: "text", hidden: true, required: true, valueXPath: "organization/id", title: "organization"}, {name: "organization._identifier", type: "text", hidden: true, required: true, valueXPath: "organization/_identifier", title: "organization"}, {name: "active", type: "boolean", required: true, length: 1, title: "active"}, {name: "creationDate", type: "date", required: true, canSave: false, length: 19, title: "creationDate"}, {name: "createdBy", type: "text", required: true, canSave: false, length: 22, title: "createdBy", hidden: true, foreignKey: "ADUser.id"}, {name: "createdBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/id", title: "createdBy"}, {name: "createdBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/_identifier", title: "createdBy"}, {name: "updated", type: "date", required: true, canSave: false, length: 19, title: "updated"}, {name: "updatedBy", type: "text", required: true, canSave: false, length: 22, title: "updatedBy", hidden: true, foreignKey: "ADUser.id"}, {name: "updatedBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/id", title: "updatedBy"}, {name: "updatedBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/_identifier", title: "updatedBy"}, {name: "name", type: "text", required: true, length: 60, title: "name"}, {name: "description", type: "text", length: 255, title: "description"}, {name: "helpComment", type: "text", length: 2000, title: "helpComment"}, {name: "validationType", type: "text", required: true, length: 60, title: "validationType", valueMap: ["D", "T", "S", "L"]}, {name: "valueFormat", type: "text", length: 40, title: "valueFormat"}, {name: "module", type: "text", required: true, length: 32, title: "module", hidden: true, foreignKey: "ADModule.id"}, {name: "module.id", type: "text", hidden: true, required: true, valueXPath: "module/id", title: "module"}, {name: "module._identifier", type: "text", hidden: true, required: true, valueXPath: "module/_identifier", title: "module"}]}));}
if (isc.DataSource.get('ADValidation') == null) {isc.DataSource.registerDataSource(isc.RestDataSource.create({operationBindings: opBindings, ID:'ADValidation',dataURL:"../../../org.openbravo.userinterface.smartclient.jsondata/ADValidation",recordXPath : "/response/data", dataFormat: "json",fields:[ {name: "id", type: "text", hidden: true, primaryKey: true, required: true, canSave: false, title: "id"}, {name: "client", type: "text", required: true, canSave: false, length: 22, title: "client", hidden: true, foreignKey: "ADClient.id"}, {name: "client.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/id", title: "client"}, {name: "client._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/_identifier", title: "client"}, {name: "organization", type: "text", required: true, length: 22, title: "organization", hidden: true, foreignKey: "Organization.id"}, {name: "organization.id", type: "text", hidden: true, required: true, valueXPath: "organization/id", title: "organization"}, {name: "organization._identifier", type: "text", hidden: true, required: true, valueXPath: "organization/_identifier", title: "organization"}, {name: "active", type: "boolean", required: true, length: 1, title: "active"}, {name: "creationDate", type: "date", required: true, canSave: false, length: 19, title: "creationDate"}, {name: "createdBy", type: "text", required: true, canSave: false, length: 22, title: "createdBy", hidden: true, foreignKey: "ADUser.id"}, {name: "createdBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/id", title: "createdBy"}, {name: "createdBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/_identifier", title: "createdBy"}, {name: "updated", type: "date", required: true, canSave: false, length: 19, title: "updated"}, {name: "updatedBy", type: "text", required: true, canSave: false, length: 22, title: "updatedBy", hidden: true, foreignKey: "ADUser.id"}, {name: "updatedBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/id", title: "updatedBy"}, {name: "updatedBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/_identifier", title: "updatedBy"}, {name: "name", type: "text", required: true, length: 60, title: "name"}, {name: "description", type: "text", length: 255, title: "description"}, {name: "type", type: "text", length: 60, title: "type", valueMap: ["E", "S", "J"]}, {name: "validationCode", type: "text", length: 2000, title: "validationCode"}, {name: "module", type: "text", required: true, length: 32, title: "module", hidden: true, foreignKey: "ADModule.id"}, {name: "module.id", type: "text", hidden: true, required: true, valueXPath: "module/id", title: "module"}, {name: "module._identifier", type: "text", hidden: true, required: true, valueXPath: "module/_identifier", title: "module"}]}));}
if (isc.DataSource.get('ADProcess') == null) {isc.DataSource.registerDataSource(isc.RestDataSource.create({operationBindings: opBindings, ID:'ADProcess',dataURL:"../../../org.openbravo.userinterface.smartclient.jsondata/ADProcess",recordXPath : "/response/data", dataFormat: "json",fields:[ {name: "id", type: "text", hidden: true, primaryKey: true, required: true, canSave: false, title: "id"}, {name: "client", type: "text", required: true, canSave: false, length: 22, title: "client", hidden: true, foreignKey: "ADClient.id"}, {name: "client.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/id", title: "client"}, {name: "client._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/_identifier", title: "client"}, {name: "organization", type: "text", required: true, length: 22, title: "organization", hidden: true, foreignKey: "Organization.id"}, {name: "organization.id", type: "text", hidden: true, required: true, valueXPath: "organization/id", title: "organization"}, {name: "organization._identifier", type: "text", hidden: true, required: true, valueXPath: "organization/_identifier", title: "organization"}, {name: "active", type: "boolean", required: true, length: 1, title: "active"}, {name: "creationDate", type: "date", required: true, canSave: false, length: 19, title: "creationDate"}, {name: "createdBy", type: "text", required: true, canSave: false, length: 22, title: "createdBy", hidden: true, foreignKey: "ADUser.id"}, {name: "createdBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/id", title: "createdBy"}, {name: "createdBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/_identifier", title: "createdBy"}, {name: "updated", type: "date", required: true, canSave: false, length: 19, title: "updated"}, {name: "updatedBy", type: "text", required: true, canSave: false, length: 22, title: "updatedBy", hidden: true, foreignKey: "ADUser.id"}, {name: "updatedBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/id", title: "updatedBy"}, {name: "updatedBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/_identifier", title: "updatedBy"}, {name: "searchKey", type: "text", required: true, length: 40, title: "searchKey"}, {name: "name", type: "text", required: true, length: 60, title: "name"}, {name: "description", type: "text", length: 255, title: "description"}, {name: "helpComment", type: "text", length: 2000, title: "helpComment"}, {name: "dataAccessLevel", type: "text", required: true, length: 60, title: "dataAccessLevel", valueMap: ["3", "1", "7", "6", "4"]}, {name: "userCanStartProcess", type: "boolean", length: 1, title: "userCanStartProcess"}, {name: "procedure", type: "text", length: 60, title: "procedure"}, {name: "report", type: "boolean", required: true, length: 1, title: "report"}, {name: "directPrint", type: "boolean", length: 1, title: "directPrint"}, {name: "javaClassName", type: "text", length: 200, title: "javaClassName"}, {name: "background", type: "boolean", required: true, length: 1, title: "background"}, {name: "jasperReport", type: "boolean", length: 1, title: "jasperReport"}, {name: "jRTemplateName", type: "text", length: 256, title: "jRTemplateName"}, {name: "serviceType", type: "text", length: 60, title: "serviceType", valueMap: ["PS"]}, {name: "externalService", type: "boolean", length: 1, title: "externalService"}, {name: "serviceSource", type: "text", length: 2000, title: "serviceSource"}, {name: "module", type: "text", required: true, length: 32, title: "module", hidden: true, foreignKey: "ADModule.id"}, {name: "module.id", type: "text", hidden: true, required: true, valueXPath: "module/id", title: "module"}, {name: "module._identifier", type: "text", hidden: true, required: true, valueXPath: "module/_identifier", title: "module"}, {name: "uIPattern", type: "text", required: true, length: 60, title: "uIPattern", valueMap: ["S", "M"]}]}));}
if (isc.DataSource.get('ADReference') == null) {isc.DataSource.registerDataSource(isc.RestDataSource.create({operationBindings: opBindings, ID:'ADReference',dataURL:"../../../org.openbravo.userinterface.smartclient.jsondata/ADReference",recordXPath : "/response/data", dataFormat: "json",fields:[ {name: "id", type: "text", hidden: true, primaryKey: true, required: true, canSave: false, title: "id"}, {name: "client", type: "text", required: true, canSave: false, length: 22, title: "client", hidden: true, foreignKey: "ADClient.id"}, {name: "client.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/id", title: "client"}, {name: "client._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/_identifier", title: "client"}, {name: "organization", type: "text", required: true, length: 22, title: "organization", hidden: true, foreignKey: "Organization.id"}, {name: "organization.id", type: "text", hidden: true, required: true, valueXPath: "organization/id", title: "organization"}, {name: "organization._identifier", type: "text", hidden: true, required: true, valueXPath: "organization/_identifier", title: "organization"}, {name: "active", type: "boolean", required: true, length: 1, title: "active"}, {name: "creationDate", type: "date", required: true, canSave: false, length: 19, title: "creationDate"}, {name: "createdBy", type: "text", required: true, canSave: false, length: 22, title: "createdBy", hidden: true, foreignKey: "ADUser.id"}, {name: "createdBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/id", title: "createdBy"}, {name: "createdBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/_identifier", title: "createdBy"}, {name: "updated", type: "date", required: true, canSave: false, length: 19, title: "updated"}, {name: "updatedBy", type: "text", required: true, canSave: false, length: 22, title: "updatedBy", hidden: true, foreignKey: "ADUser.id"}, {name: "updatedBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/id", title: "updatedBy"}, {name: "updatedBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/_identifier", title: "updatedBy"}, {name: "name", type: "text", required: true, length: 60, title: "name"}, {name: "description", type: "text", length: 255, title: "description"}, {name: "helpComment", type: "text", length: 2000, title: "helpComment"}, {name: "validationType", type: "text", required: true, length: 60, title: "validationType", valueMap: ["D", "T", "S", "L"]}, {name: "valueFormat", type: "text", length: 40, title: "valueFormat"}, {name: "module", type: "text", required: true, length: 32, title: "module", hidden: true, foreignKey: "ADModule.id"}, {name: "module.id", type: "text", hidden: true, required: true, valueXPath: "module/id", title: "module"}, {name: "module._identifier", type: "text", hidden: true, required: true, valueXPath: "module/_identifier", title: "module"}]}));}
if (isc.DataSource.get('ADCallout') == null) {isc.DataSource.registerDataSource(isc.RestDataSource.create({operationBindings: opBindings, ID:'ADCallout',dataURL:"../../../org.openbravo.userinterface.smartclient.jsondata/ADCallout",recordXPath : "/response/data", dataFormat: "json",fields:[ {name: "id", type: "text", hidden: true, primaryKey: true, required: true, canSave: false, title: "id"}, {name: "client", type: "text", required: true, canSave: false, length: 12, title: "client", hidden: true, foreignKey: "ADClient.id"}, {name: "client.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/id", title: "client"}, {name: "client._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "client/_identifier", title: "client"}, {name: "organization", type: "text", required: true, length: 12, title: "organization", hidden: true, foreignKey: "Organization.id"}, {name: "organization.id", type: "text", hidden: true, required: true, valueXPath: "organization/id", title: "organization"}, {name: "organization._identifier", type: "text", hidden: true, required: true, valueXPath: "organization/_identifier", title: "organization"}, {name: "active", type: "boolean", required: true, length: 1, title: "active"}, {name: "creationDate", type: "date", required: true, canSave: false, length: 19, title: "creationDate"}, {name: "createdBy", type: "text", required: true, canSave: false, length: 12, title: "createdBy", hidden: true, foreignKey: "ADUser.id"}, {name: "createdBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/id", title: "createdBy"}, {name: "createdBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "createdBy/_identifier", title: "createdBy"}, {name: "updated", type: "date", required: true, canSave: false, length: 19, title: "updated"}, {name: "updatedBy", type: "text", required: true, canSave: false, length: 12, title: "updatedBy", hidden: true, foreignKey: "ADUser.id"}, {name: "updatedBy.id", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/id", title: "updatedBy"}, {name: "updatedBy._identifier", type: "text", hidden: true, required: true, canSave: false, valueXPath: "updatedBy/_identifier", title: "updatedBy"}, {name: "name", type: "text", required: true, length: 60, title: "name"}, {name: "description", type: "text", length: 2000, title: "description"}, {name: "module", type: "text", required: true, length: 32, title: "module", hidden: true, foreignKey: "ADModule.id"}, {name: "module.id", type: "text", hidden: true, required: true, valueXPath: "module/id", title: "module"}, {name: "module._identifier", type: "text", hidden: true, required: true, valueXPath: "module/_identifier", title: "module"}]}));}

var layOut = isc.HLayout.create({overflow: 'auto', autoDraw: false});
layOut.addMember(isc.ListGrid.create({autoDraw: false, ID: 'Grid101', left: 20, top: 20, minFieldWidth: 100, wrapCells: true, showFilterEditor: true, dataPageSize: 20, showResizeBar: true, recordClick: 'Form101.setData(record)', canFreezeFields: true, canAddFormulaFields: true, canAddSummaryFields: true, alternateRecordStyles: true, autoFetchData: true, dataSource: 'ADColumn', fields : [{title: 'table', name: 'table._identifier', canFreeze: true, canGroupBy: true, filterOnKeypress: true},{title: 'dBColumnName', name: 'dBColumnName', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'applicationElement', name: 'applicationElement._identifier', canFreeze: true, canGroupBy: true, filterOnKeypress: true},{title: 'name', name: 'name', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'description', name: 'description', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'helpComment', name: 'helpComment', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'active', name: 'active', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'length', name: 'length', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'reference', name: 'reference._identifier', canFreeze: true, canGroupBy: true, filterOnKeypress: true},{title: 'validation', name: 'validation._identifier', canFreeze: true, canGroupBy: true, filterOnKeypress: true},{title: 'valueFormat', name: 'valueFormat', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'process', name: 'process._identifier', canFreeze: true, canGroupBy: true, filterOnKeypress: true},{title: 'referenceSearchKey', name: 'referenceSearchKey._identifier', canFreeze: true, canGroupBy: true, filterOnKeypress: true},{title: 'minValue', name: 'minValue', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'maxValue', name: 'maxValue', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'defaultValue', name: 'defaultValue', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'keyColumn', name: 'keyColumn', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'linkToParentColumn', name: 'linkToParentColumn', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'mandatory', name: 'mandatory', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'updatable', name: 'updatable', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'readOnlyLogic', name: 'readOnlyLogic', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: '_identifier', name: '_identifier', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'filterColumn', name: 'filterColumn', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'secondaryKey', name: 'secondaryKey', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'transient', name: 'transient', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'transientCondition', name: 'transientCondition', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'sequenceNumber', name: 'sequenceNumber', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'callout', name: 'callout._identifier', canFreeze: true, canGroupBy: true, filterOnKeypress: true},{title: 'storedInSession', name: 'storedInSession', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'translation', name: 'translation', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'displayEncription', name: 'displayEncription', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'deencryptable', name: 'deencryptable', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'position', name: 'position', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'developmentStatus', name: 'developmentStatus', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true},{title: 'calloutFunction', name: 'calloutFunction', canFreeze: true, canGroupBy: true, filterOnKeypress: true, validateOnChange: true}]}));

var formLayOut = isc.VLayout.create({autoDraw: false, width: 400});
layOut.addMember(formLayOut);

//var buttonLayOut = isc.HLayout.create({overflow: 'auto', membersMargin: 10, align: "center", height: 30, autoDraw: false});
var toolStrip = isc.ToolStrip.create({width: 350, height:24, membersMargin: 5, layoutMargin: 5});
//formLayOut.addMember(buttonLayOut);
formLayOut.addMember(toolStrip);
formLayOut.addMember(isc.DynamicForm.create({titleOrientation: "left", left: 20, top: 20, autoFocus: true, autoDraw: false, ID : 'Form101',dataSource: 'ADColumn', fields : [{title: 'client', name: 'client.id', displayField: '_identifier', valueField: 'id', editorType: 'comboBox', optionDataSource: 'ADClient', validateOnChange: true, pickListWidth: 200, fetchDelay: 300, selectOnFocus: true, dataPageSize : 15, width: 250, pickListCriteria: { _sortBy : '_identifier'}, pickListFields: [{name:'_identifier'}]},{title: 'organization', name: 'organization.id', displayField: '_identifier', valueField: 'id', editorType: 'comboBox', optionDataSource: 'Organization', validateOnChange: true, pickListWidth: 200, fetchDelay: 300, selectOnFocus: true, dataPageSize : 15, width: 250, pickListCriteria: { _sortBy : '_identifier'}, pickListFields: [{name:'_identifier'}]},{title: 'table', name: 'table.id', displayField: '_identifier', valueField: 'id', editorType: 'comboBox', optionDataSource: 'ADTable', validateOnChange: true, pickListWidth: 200, fetchDelay: 300, selectOnFocus: true, dataPageSize : 15, width: 250, pickListCriteria: { _sortBy : '_identifier'}, pickListFields: [{name:'_identifier'}]},{title: 'module', name: 'module.id', displayField: '_identifier', valueField: 'id', editorType: 'comboBox', optionDataSource: 'ADModule', validateOnChange: true, pickListWidth: 200, fetchDelay: 300, selectOnFocus: true, dataPageSize : 15, width: 250, pickListCriteria: { _sortBy : '_identifier'}, pickListFields: [{name:'_identifier'}]},{title: 'dBColumnName', name: 'dBColumnName', validateOnChange: true},{title: 'applicationElement', name: 'applicationElement.id', displayField: '_identifier', valueField: 'id', editorType: 'comboBox', optionDataSource: 'ADElement', validateOnChange: true, pickListWidth: 200, fetchDelay: 300, selectOnFocus: true, dataPageSize : 15, width: 250, pickListCriteria: { _sortBy : '_identifier'}, pickListFields: [{name:'_identifier'}]},{title: 'name', name: 'name', validateOnChange: true},{title: 'description', name: 'description', validateOnChange: true},{title: 'helpComment', name: 'helpComment', validateOnChange: true},{title: 'active', name: 'active', validateOnChange: true},{title: 'length', name: 'length', validateOnChange: true},{title: 'reference', name: 'reference.id', displayField: '_identifier', valueField: 'id', editorType: 'comboBox', optionDataSource: 'ADReference', validateOnChange: true, pickListWidth: 200, fetchDelay: 300, selectOnFocus: true, dataPageSize : 15, width: 250, pickListCriteria: { _sortBy : '_identifier'}, pickListFields: [{name:'_identifier'}]},{title: 'validation', name: 'validation.id', displayField: '_identifier', valueField: 'id', editorType: 'comboBox', optionDataSource: 'ADValidation', validateOnChange: true, pickListWidth: 200, fetchDelay: 300, selectOnFocus: true, dataPageSize : 15, width: 250, pickListCriteria: { _sortBy : '_identifier'}, pickListFields: [{name:'_identifier'}]},{title: 'valueFormat', name: 'valueFormat', validateOnChange: true},{title: 'process', name: 'process.id', displayField: '_identifier', valueField: 'id', editorType: 'comboBox', optionDataSource: 'ADProcess', validateOnChange: true, pickListWidth: 200, fetchDelay: 300, selectOnFocus: true, dataPageSize : 15, width: 250, pickListCriteria: { _sortBy : '_identifier'}, pickListFields: [{name:'_identifier'}]},{title: 'referenceSearchKey', name: 'referenceSearchKey.id', displayField: '_identifier', valueField: 'id', editorType: 'comboBox', optionDataSource: 'ADReference', validateOnChange: true, pickListWidth: 200, fetchDelay: 300, selectOnFocus: true, dataPageSize : 15, width: 250, pickListCriteria: { _sortBy : '_identifier'}, pickListFields: [{name:'_identifier'}]},{title: 'minValue', name: 'minValue', validateOnChange: true},{title: 'maxValue', name: 'maxValue', validateOnChange: true},{title: 'defaultValue', name: 'defaultValue', validateOnChange: true},{title: 'keyColumn', name: 'keyColumn', validateOnChange: true},{title: 'linkToParentColumn', name: 'linkToParentColumn', validateOnChange: true},{title: 'mandatory', name: 'mandatory', validateOnChange: true},{title: 'updatable', name: 'updatable', validateOnChange: true},{title: 'readOnlyLogic', name: 'readOnlyLogic', validateOnChange: true},{title: '_identifier', name: '_identifier', validateOnChange: true},{title: 'filterColumn', name: 'filterColumn', validateOnChange: true},{title: 'secondaryKey', name: 'secondaryKey', validateOnChange: true},{title: 'transient', name: 'transient', validateOnChange: true},{title: 'transientCondition', name: 'transientCondition', validateOnChange: true},{title: 'sequenceNumber', name: 'sequenceNumber', validateOnChange: true},{title: 'callout', name: 'callout.id', displayField: '_identifier', valueField: 'id', editorType: 'comboBox', optionDataSource: 'ADCallout', validateOnChange: true, pickListWidth: 200, fetchDelay: 300, selectOnFocus: true, dataPageSize : 15, width: 250, pickListCriteria: { _sortBy : '_identifier'}, pickListFields: [{name:'_identifier'}]},{title: 'storedInSession', name: 'storedInSession', validateOnChange: true},{title: 'translation', name: 'translation', validateOnChange: true},{title: 'displayEncription', name: 'displayEncription', validateOnChange: true},{title: 'deencryptable', name: 'deencryptable', validateOnChange: true},{title: 'position', name: 'position', validateOnChange: true},{title: 'developmentStatus', name: 'developmentStatus', validateOnChange: true},{title: 'calloutFunction', name: 'calloutFunction', validateOnChange: true}]}));

   addButtons('Form101', toolStrip, 'ADColumn');
    
  TabSet.getById(destinyTabSetId).addTab({
      ID: tabId, 
      title: tabTitle, 
      canClose: true,
      pane : layOut
  });
  TabSet.getById(destinyTabSetId).selectTab(tabId);
}

function addButtons(formId, toolStrip, entityName) {
    toolStrip.addMember(isc.Button.create({
        top: 20,
        title: "Save",
        icon: "Main/ToolBar/iconSave.png",
        click: formId + ".saveData()"
    }));
    toolStrip.addMember(isc.Button.create({
        top: 20,
        title: "New",
        icon: "Main/ToolBar/iconNew.png",
        click: formId + ".editNewRecord(); " + formId + ".setValue('entityName', 'ADColumn')"
    }));
    toolStrip.addMember(isc.Button.create({
        top: 20,
        title: "Copy",
        icon: "Main/ToolBar/iconAttach.png",
        click: formId + ".editNewRecord(Form101.getValues()); " + formId + ".setValue('id', null); " + formId + ".setValue('entityName', '" + entityName + "')"
    }));
    toolStrip.addMember(isc.Button.create({
        top: 20,
        title: "Delete",
        icon: "Main/ToolBar/iconErase.png",
        click: "confirmDelete(" + formId + "," + formId + ".getValue('_identifier'))"
    }));
}
 
function confirmDelete(form, ident) {
    var func = function (value) {
          if (value != null && value) {
            isc.DataSource.getDataSource(form.dataSource).removeData('', '', {params:{id: form.getValue('id')}});
            }
    };
    isc.confirm("Are you sure you want to delete " + ident + "?", func); 
}

doAddTab("500");

</script>
</body>
</html>